package com.kedacom.ctsp.authority.entity;

import com.kedacom.ctsp.web.entity.AbstractCrudEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 分管关系关联表
 *
 * @author sunchenjie
 */
@ApiModel
@Data
@Entity
@Table(name = "charge_relation")
public class SimpleChargeRelation extends AbstractCrudEntity<String> implements ChargeRelation {

    /**
     * 主键id ，自增长
     */
    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    private String id;
    /**
     * 分管类型，字典表维护
     */
    private String chargeType;

    private SettingForType typeFrom;
    private String idFrom;
    private SettingForType typeTo;
    private String idTo;
    private String path;
}
